#include<iostream>
using namespace std;
class complex{
	public:
	double real,imag;
	complex(int i){
		cout<<"coustructor called"<<endl;
		real=i;
		imag=0;
	}
	complex(double r,double i){
		real=r;
		imag=i;
	}
};
int main(){
	complex c1(7,8);
	complex c2=12;
	c1=9;
	cout<<c1.real<<","<<c1.imag<<endl;
	cout<<c2.real<<","<<c2.imag<<endl;
return 0;
}
